home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Development
/
Source
/
Chess++ ƒ
/
CChessPieces ƒ
/
CPawn.h
< prev
next >
Wrap
Text File
|
1993-04-25
|
553b
|
23 lines
/****
* CPawn.h
*
* Class representing the pawn.
*
* Copyright © 1993 Steven J. Bushell. All rights reserved.
*
****/
#define _H_CPawn /* Include this file only once */
#include "CObject.h"
class CChessBoard;
class CPawn : public CChessPiece {
public:
void IPawn(Boolean);
void Draw(short rank, short file);
CIconHandle GetCicnHandle(void);
short BoardLocationValue(CChessBoard *aBoard, short rank, short file);
Boolean IsValidMove(CChessBoard *aBoard, short newRank, short newFile);
void RegisterMove(short rank, short file);
};